{if !empty($objCategory)}
    <h4>{$objCategory->getFieldLang('name')}</h4>
    {$objCategory->getFieldLang('details')}
    {if !empty($arrSubCategory)}
    {foreach $arrSubCategory as $itemSubCategory}
    <ul class="menu collapsible">
        <!--<li class="expand">-->
        <li class="product_group">
            <a href="#" id="a_pdtGrp"><strong>{$itemSubCategory->getFieldLang('name')}</strong></a>
            <div name="divacitem" class="acitem" style="display:none;">
                <ul class="menu collapsible">
                    <div class="productwrapper">
<!--
                        <div class="productlogo">
                            <img src="http://terraco.com/images/19247113561934153915_20120119_flexitex-1.jpg" height="181" width="198" />
                        </div>
-->
                        {$itemSubCategory->getFieldLang('details')}
                        {assign var=arrProduct value=$product->getObjectsFromCId(1, $itemSubCategory->getField('id'))}
                        {if !empty($arrProduct)}
                        <li id="lipdtInfo">
                            <a href="#">{l s='Click here for Product Info'}</a>
                            <div class="acitem" name="spdtInfo" style="display:none;">
                                <table class="producttbl" border="0" cellpadding="0" cellspacing="0" width="">
                                    <tbody>
                                        <tr>
                                            <td align="left" width="114">
                                                <strong>{l s='Product Code'}</strong>
                                            </td>
                                            <td align="left" width="68">
                                                <strong>{l s='Colour'}</strong>
                                            </td>
                                            <td align="left" width="64">
                                                <strong>{l s='td'}</strong>
                                            </td>
                                            <td align="left" width="64">
                                                <strong>{l s='msds'}</strong>
                                            </td>
                                        </tr></tbody>
                                        {foreach $arrProduct.data as $itemProduct}
                                        <tr>
                                            <td align="left">{$itemProduct->getField('code')}</td>
                                            <td align="left">{$itemProduct->getField('colour')}</td>
                                            <td align="left">
                                                <a name="a_sb" target="_blank" href="{if $itemProduct->getField('files1')}{$base_url}/upload/files/{$itemProduct->getField('files1')}{else}#{/if}">{l s='Download'}</a>
                                            </td>
                                            <td align="left">
                                                <a name="a_sb" target="_blank" href="{if $itemProduct->getField('files2')}{$base_url}/upload/files/{$itemProduct->getField('files2')}{else}#{/if}">{l s='Download'}</a>
                                            </td>
                                        </tr>
                                        {/foreach}
                                    </tbody>
                                </table>
                            </div>
                        </li>
                        {/if}
                    </div>
                </ul>
            </div>
        </li>
    </ul>
    {/foreach}
    {/if}
{/if}